<!DOCTYPE html>
<html>
<head>
    <title>Outline above absolutely positioned elements</title>
    <style type="text/css">
        body {
            padding: 60px;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 16px;
            line-height: 1.2;
            color: #000000;
            position: relative;
        }
        .tooltip {
            width: 200px;
            height: 100px;
            background: #000000;
            opacity: 0.6;
            position: absolute;
            left: 40px;
            top: 40px;
        }
        h1 {
            display: inline-block;
            padding: 0;
            font-size: 20px;
            font-weight: normal;
            background: #FFCC00;
            outline: 4px solid #FFCC00;
            margin: 0;
        }
    </style>
</head>
<body>
    <h1>
        3000 Words
    </h1>
    <div class="tooltip"></div>
</body>
</html>